﻿using System;
using System.Drawing;
using System.Windows.Forms;

namespace PlusPlusPaint.Tools
{
    abstract class StartingPointTool : VisualObjectLayerStoringTool
    {
        #region properties
        protected Nullable<Point> Origin
        {
            get;
            private set;
        }
        #endregion

        public override void HandleMouseDown(MouseEventArgs mea)
        {
            if (!this.Origin.HasValue)
                this.Origin = mea.Location;
        }
    }
}
